import { ApiProperty } from '@nestjs/swagger';
import { IsArray } from 'class-validator';
import { Type } from 'class-transformer';

export class RoleAccessReqDto {
    @ApiProperty({ required: true, description: '资源ID数组' })
    @Type(() => Number)
    @IsArray({ message: '资源ID列表必须是一个数组' })
    access: number[];

}